derivatives of rational functions